--[[
描述 ： 导航 文件 
作者 ： 付大志
修改 ： xxs - android
时间 ： 14/12/01
]]

 
--[[
描述 ： Navigation 定位 类
]]
MLNavigation = Class('MLNavigation');
MLNavigation.mInstance =nil;--    = MLPlugin.getStaticPluginInst('com.MLink.plugins.MLNavigation.MYNavigation');
-- Navigation.mHashCode     = nil;
MLNavigation.onNavigation    =nil;

--[[
功能：     启动百度导航--网页版
参数： srcLat 起始点纬度
        srcLon 起始点经度
        dstLat 终点纬度
        dstLon 终点经度
返回： 无
]]
function MLNavigation.startNaviByBaiduWed(srcLat,srcLon,dstLat,dstLon)  
	if srcLat==nil then print('Warning: MLNavigation.startNaviByBaiduWed(), agrument 1 is nil'); return end
	if type(srcLat) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduWed(), argument 1, type is not number!'); return  end 

	if srcLon==nil then print('Warning: MLNavigation.startNaviByBaiduWed(), agrument 2 is nil'); return end
	if type(srcLon) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduWed(), argument 2, type is not number!'); return  end 

	if dstLat==nil then print('Warning: MLNavigation.startNaviByBaiduWed(), agrument 3 is nil'); return end
	if type(dstLat) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduWed(), argument 3, type is not number!'); return  end 

	if dstLon==nil then print('Warning:MLNavigation.startNaviByBaiduWed(), agrument 4 is nil'); return end
	if type(dstLon) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduWed(), argument 4, type is not number!'); return  end 
    --MLNavigation.mInstance:startWebNavi(srcLat,srcLon,dstLat,dstLon,MLNative.MLContext); 
end 
 
--[[
功能：     启动百度导航--客户端版
参数： srcLat 起始点纬度
        srcLon 起始点经度
        dstLat 终点纬度
        dstLon 终点经度
返回： 无
]]
function MLNavigation.startNaviByBaiduClient(srcLat,srcLon,dstLat,dstLon)
	if srcLat==nil then print('Warning: MLNavigation.startNaviByBaiduClient(), agrument 1 is nil'); return end
	if type(srcLat) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduClient(), argument 1, type is not number!'); return  end 

	if srcLon==nil then print('Warning: MLNavigation.startNaviByBaiduClient(), agrument 2 is nil'); return end
	if type(srcLon) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduClient(), argument 2, type is not number!'); return  end 

	if dstLat==nil then print('Warning: MLNavigation.startNaviByBaiduClient(), agrument 3 is nil'); return end
	if type(dstLat) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduClient(), argument 3, type is not number!'); return  end 

	if dstLon==nil then print('Warning:MLNavigation.startNaviByBaiduClient(), agrument 4 is nil'); return end
	if type(dstLon) ~= 'number'  then print('Warning: MLNavigation.startNaviByBaiduClient(), argument 4, type is not number!'); return  end 

   --MLNavigation.mInstance:startNavi(srcLat,srcLon,dstLat,dstLon,MLNative.MLContext); 
end
 

 
